import { defineStore } from "pinia";

export const useCategoryStore = defineStore("categroy", {
  state: () => {
    return {
      currentCategroy: "",
      currentSubCategroy: "",
      categroyMethod: "",
      editData: {},
      currentType: "",
    };
  },
  actions: {
    setCurrentCateGroy(e) {
      this.currentCategroy = e;
    },
    setCurrentSubCategroy(e) {
      this.currentSubCategroy = e;
    },
    setCategroyMethod(e) {
      this.categroyMethod = e;
    },
    setEditData(e) {
      this.editData = e;
    },
    setCurrentType(e) {
      this.currentType = e;
    },
  },
});
